import request from '@/utils/http.js'

//寄修
//寄修申请
export const repairAdd = params => request('post','api/repair/repairAdd',params)

//寄修记录列表
export const repairList = params => request('get','api/repair/repairList',params)

//寄修记录详情
export const repairById = params => request('get','api/repair/repairById',params)

//寄修编辑
export const repairEdit = params => request('post','api/repair/repairEdit',params)

//寄修进度
export const repairProgress = params => request('get','api/repair/repairProgress',params)

//付款图片上传
export const updatePaymentImg = params => request('post','api/repair/updatePaymentImg',params)

//寄修删除
export const repairDelete = params => request('post','api/repair/repairDelete',params)

//放弃维修
export const repairGiveup = params => request('post','api/repair/repairGiveup',params)

//寄修统计
export const repairStatistics = params => request('get','api/repair/repairStatistics',params)

//子母件列表
export const repairBranchList = params => request('get','api/repair/repairBranchList',params)

//复判不良件
export const repairBadUpdate = params => request('post','api/repair/repairBadUpdate',params)

//添加用户留言
export const userMsgAdd = params => request('post','api/repair/userMsgAdd',params)

//修改预支付寄回运费
export const isExpressAdvance = params => request('post','api/repair/isExpressAdvance',params)

//查询快递状态
export const getDynamicTraceInfo = params => request('post','api/repair/getDynamicTraceInfo',params)